IModel.RemoveField method

Namespace: NextDesign.Core

Description

Removes the value of the designated field in this instance. Deletes the specified model if the specified field is the owning field. If the specified field is a reference field, only the reference association is deleted and the model is retained.

If the model specified as the deletion target is not included in the specified field, nothing is done and the process ends normally.

argument

Name Type Description
fieldName string Field name
Null or empty string cannot be specified.
value IModel Model to be deleted

Return value

  • void

Exception

Name Exception Class Description
Invalid argument ExtensionArgumentException When null or empty string is specified in fieldName
Field not found ExtensionFieldNotFoundException If the specified field is not found in this instance's metaclass
Illegal operation ExtensionInvalidOperationException When an inoperable field is specified in the field name
-Product line feature assignment field
-Field with System.Core tag